using System.Collections.Generic;
using Framework;
using Framework.DataTable;
using UnityEngine;

public partial class LangTable
{
    public override bool LazyDecode()
    {
        return true;
    }
    protected override void AddIndex(ByteArray buffer, int index)
    {
        base.AddIndex(buffer, index);
        var id = _buffer.ReadString();
        if (_keyToIndex.ContainsKey(id))
        {
        }
        else
        {
            _keyToIndex.Add(id, index);
        }
    }
    protected override void OnReadHeader()
    {
        base.OnReadHeader();
        if (_keyToIndex == null)
        {
            _keyToIndex = new Dictionary<string, int>(ItemCount);
        }
        else
        {
            _keyToIndex.Clear();
        }
    }
}
public class Lang1 : LangData
{
    public override void Decode(ByteArray buffer)
    {
        base.Decode(buffer);
    }
}